package com.demo.aware;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

@Component
public class BeanNameAwareDemo implements BeanNameAware {

    @Override
    public void setBeanName(String s) {
        System.out.println("这是我的名字:" + s);
    }

}
